package JAVA20241111;
//对象是初始化
class Date{
    public int year;
    public int month;
    public int day;

    public void setDay(int y,int m,int d) {
        this.year = y;
        this.month = m;
        this.day = d;
    }
    public void Printf(){
        System.out.println(year+"/"+month+"/"+day);
    }
}
public class tow{
    public static void main(String[] args) {
        Date date1 = new Date();
        Date date2 = new Date();
        Date date3 = new Date();

        date1.setDay(2022,2,22);
        date2.setDay(2024,11,11);
        date3.setDay(2026,7,1);
        date1.Printf();
        date2.Printf();
        date3.Printf();
    }
}
